﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/PmUI/PmMaster.Master" AutoEventWireup="true"
    CodeBehind="SearchEmployeePm.aspx.cs" Inherits="HRM.UI.PmUI.EmpModule.SearchEmployeePm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">
    <link href="../../../Styles/Employee/EvaluateEmployeeCss.css" rel="stylesheet" type="text/css" />
    <table width="100%">
        <tr>
            <td align="right" style="width: 30%">
                Select Project:
            </td>
            <td>
                <select runat="server" id="selectEmployeeInProject" class="dropdownCss">
                    <option>Select Project</option>
                </select>
                <input type="button" runat="server" id="searchEmployee" value="Search Employee" onserverclick="SearchEmployee"
                    class="btnCss" />
            </td>
        </tr>
    </table>
    <fieldset>
        <legend>Employee Information</legend>
        <asp:GridView runat="server" ID="searchEmpGrid" AutoGenerateColumns="False" Width="100%"
            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" CssClass="GridviewStyle"
            OnPageIndexChanging="searchEmpGrid_PageIndexChanging" AllowPaging="True" PageSize="5"
            BackColor="White">
            <Columns>
                <asp:TemplateField HeaderText="Employee Code">
                    <ItemTemplate>
                        <asp:Label ID="lblCode" runat="server" Text='<%# Bind("Code.CodeName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Name">
                    <ItemTemplate>
                        <asp:Label ID="lblEmp" runat="server" Text='<%# Bind("Employee.Name") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Designation">
                    <ItemTemplate>
                        <asp:Label ID="lblEmpName" runat="server" Text='<%# Bind("Designation.Title") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Project">
                    <ItemTemplate>
                        <asp:Image ID="logo" runat="server" BorderColor="black" BorderStyle="Solid" BorderWidth="1"
                            Height="50" ImageUrl='<%#Bind("Photo.FileName") %>' Width="50" />
                        <asp:Label ID="lblProjectName" runat="server" Text='<%# Bind("project.ProjectName") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblProjectName" runat="server" Text='<%# Bind("project.ProjectName") %>'></asp:Label>
                    </ItemTemplate>
                    <ControlStyle Font-Underline="False" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Joining Date">
                    <ItemTemplate>
                        <asp:Label ID="lbljod" runat="server" Text='<%# Bind("Employee.JoiningDate") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Photo">
                    <ItemTemplate>
                        <asp:Image ID="logo" ImageUrl='<%#Bind("Photo.FileName") %>' runat="server" Width="50"
                            Height="50" BorderStyle="Solid" BorderWidth="1" BorderColor="black" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("Code.CodeName", "../../../UI/PmUI/EmpModule/DetailsEmployee.aspx?emp-code={0}") %>'
                            Target="_blank" Text="Details"></asp:HyperLink>
                    </ItemTemplate>
                    <ControlStyle Font-Underline="False" />
                </asp:TemplateField>
               
            </Columns>
            <FooterStyle CssClass="GridViewFooterStyle" />
            <HeaderStyle CssClass="GridViewHeaderStyle" />
            <PagerStyle CssClass="GridViewFooterStyle" HorizontalAlign="Center" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
    </fieldset>
    <asp:Label runat="server" ID="lblFondResult"></asp:Label>
</asp:Content>
